package com.group11.user.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.group11.common.dto.RegUser;
import com.group11.user.dto.UserInfo;
import com.group11.user.entity.User;
import com.group11.user.entity.UserEnterprise;

public interface UserService extends IService<User> {
    void reg(String account, String password);

    RegUser login(RegUser regUser);

    User getById(int id);

    void setUserType(int id,String type);

    void setUserAvatar(int id,String avatar);

    boolean updateUser(UserInfo userInfo);

    int addUserEnterprise(UserEnterprise userEnterprise);

    int cancelUserEnterprise(int user_id, int ent_id);

    UserEnterprise getUserEnterprise(int user_id, int ent_id);

    boolean followEnterprise(int user_id, int ent_id);
}
